package com.theexceptions.todo.controller;

import com.theexceptions.todo.model.User;
import android.content.Context;

/**
 * The base controller class. The base controller receives a context from the
 * main Activity when the program is first started. This allows all children
 * that extend this class to use any objects or functions that require a Context
 * (i.e. DatabaseHelper).
 * 
 * Note: Any class extending Controller is expected to be abstract by convention
 * and contain only static methods.
 * 
 * @author Justian Meyer and JD Reddaway
 */
public abstract class Controller {

	protected static Context context;
	protected static User currentUser = User.EMPTY_USER;

	public static void setContext(Context context) {
		Controller.context = context;
	}
}
